import { emitter } from '@/utils/Emitter'

/**
 * Custom event: Rebuild TOC content
 */
export const rerenderTocEvt = Symbol('rerenderToc')

export const LsyTocEvent = {
  [rerenderTocEvt]: undefined,
}

/**
 * Send refresh current route component event
 */
export function emitRerenderToc() {
  emitter.emit(rerenderTocEvt)
}
